<?php

class Test_Abovo_Model_Apps extends Solar_Test {

    private $_apps;
    
    public function setup()
    {
        $this->_apps = Solar::factory('Abovo_Model_Apps');
    }
    
    public function tearDown()
    {
        Solar::registry('sql')->query("DELETE FROM {$this->_apps->name}");
    }
    
    public function testFetchAllApps()
    {
        $this->tearDown();
        
        $this->_apps->insert(array('name' => 'Vendor_App_Module_ExampleApp'));
        
        $out = array('Vendor_App_Module_ExampleApp');
        $this->assertSame($this->_apps->fetchAllApps(), $out);
    }
}
